<?php
   include(dirname(__FILE__) . "/connect.php");
   
   $badgedata = $_POST['badgedata'];
   $badgedata  = explode(',', $badgedata[0]);
   $flag =  $badgedata[6];

   	mysqli_query($con, "UPDATE badge_id SET flag = '$flag' WHERE id = '1' ");
		
require_once(dirname(__FILE__) . "/pr_indie.php");
		
?>
